package com.gm.model.po;

/**
 * Created by taojie on 17-6-6.
 * 系统用户
 */
public class User {

    //平台用户ID
    private int id;
    //用户名
    private String userName;
    //密码(MD5)
    private String pwd;
    //姓名
    private String name;
    //email
    private String email;
    //手机号码
    private String phoneNum;
    //角色s
    private String roles;
    //状态
    private int status;
    //创建时间
    private long createTime;
    //更新时间
    private long updateTime;

    public User() {
    }

    public User(String userName, String pwd, String name, String email, String phoneNum,
                String roles, int status, long createTime, long updateTime) {
        this.userName = userName;
        this.pwd = pwd;
        this.name = name;
        this.email = email;
        this.phoneNum = phoneNum;
        this.roles = roles;
        this.status = status;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPwd() {
        return pwd;
    }

    public void setPwd(String pwd) {
        this.pwd = pwd;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getRoles() {
        return roles;
    }

    public void setRoles(String roles) {
        this.roles = roles;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", userName='" + userName + '\'' +
                ", pwd='" + pwd + '\'' +
                ", name='" + name + '\'' +
                ", email='" + email + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", roles='" + roles + '\'' +
                ", status=" + status +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }
}
